package test;
//package ch.ethz.fcl;
//
//import android.app.Activity;
//import android.os.Bundle;
//import android.util.Log;
//import android.view.Gravity;
//import android.view.WindowManager;
//import android.widget.LinearLayout;
//import android.widget.TabHost;
//import ch.ethz.fcl.draw.Paint;
//import ch.ethz.fcl.user.interaction.ButtonListener;
//import ch.ethz.fcl.user.interaction.MultiTouchHandler;
//import ch.ethz.fcl.view.BaseMapView;
//import ch.ethz.fcl.view.NetworkView;
//import ch.ethz.fcl.view.SettingView;
//
//public class MetroBuzzAndroidActivity extends Activity {
//	private final String TAG = "MetroBuzz";
//	public Paint paint;
//
//	/** Called when the activity is first created. */
//	@SuppressWarnings("static-access")
//	@Override
//	public void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//		setContentView(R.layout.main);
//
//		Log.d(TAG, "Welcome to the MetroBuzz");
//
//		TabHost mTabHost = (TabHost) findViewById(R.id.tabhost);
//		mTabHost.setup();
//
//		BaseMapView bmv = new BaseMapView(mTabHost);
//		bmv.tv.setText("Base Map");
//		bmv.tv.setTextSize(40);
//		bmv.tv.setGravity(Gravity.CENTER_VERTICAL);
//
//		mTabHost.addTab(mTabHost
//				.newTabSpec("Setting")
//				.setIndicator("",
//						getResources().getDrawable(R.drawable.setting))
//				.setContent(R.id.tab2));
//
//		mTabHost.addTab(mTabHost
//				.newTabSpec("Network")
//				.setIndicator("",
//						getResources().getDrawable(R.drawable.network))
//				.setContent(R.id.tab3));
//
//		int screenWidth = this.getWindowManager().getDefaultDisplay()
//				.getWidth();
//		mTabHost.getTabWidget().getChildAt(0).getLayoutParams().width = screenWidth / 4;
//
//		mTabHost.getTabWidget().getChildAt(0).setTag("BaseMap");
//		mTabHost.getTabWidget().getChildAt(0)
//				.setOnClickListener(new ButtonListener(this));
//
//		mTabHost.getTabWidget().getChildAt(1).setTag("Setting");
//		mTabHost.getTabWidget().getChildAt(1)
//				.setOnClickListener(new ButtonListener(this));
//
//		mTabHost.getTabWidget().getChildAt(2).setTag("Network");
//		mTabHost.getTabWidget().getChildAt(2)
//				.setOnClickListener(new ButtonListener(this));
//
//		LinearLayout tab2content = (LinearLayout) findViewById(R.id.tab2);
//		tab2content.addView(new SettingView(this).view_setting);
//
//		LinearLayout tabiplayout = (LinearLayout) findViewById(R.id.tab3);
//		tabiplayout.addView(new NetworkView(this).ipview);
//
//		paint = new Paint(this);
//		if (MultiTouchHandler.cylinder)
//			paint.drawCircle();
//		else
//			paint.drawLine();
//
//		// hide the soft keyboard initially
//		getWindow().setSoftInputMode(
//				WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
//	}
//}